﻿using Autofac;
using DDD.Grpc.Client.Test.Clients;
using Microsoft.Extensions.Hosting;

namespace DDD.Grpc.Client.Test
{
    public class StartupModule : Module
    {
        protected override void Load(ContainerBuilder builder)
        {
            builder.RegisterType<UserServiceClientTest>().AsSelf().InstancePerLifetimeScope();

            builder.RegisterType<HostedService>().As<IHostedService>().SingleInstance();

            base.Load(builder);
        }

    }
}
